exports.getPageNum = (pageNum, pageSize) => {
    let page = null
    if (pageNum < 1) {
        page = 0;
    } else {
        page = (pageNum - 1) * pageSize;
    }
    return page;
};